package com.CampusForum.community.dao;

import com.CampusForum.community.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface UserMapper {


    User getUserByName(String username);

    User getById(int id);
 
    User selectByName(String username);
 
    User selectByEmail(String email);
 
    int insertUser(User user);
 
    int updateStatus(@Param("id") int id, @Param("status") int status);
 
    int updateHeader(@Param("id") int id, @Param("headerUrl") String headerUrl);
 
    int updatePassword(@Param("id") int id, @Param("password") String password);
 
}